package com.waves.design.strategy;

/**
 * 学生折扣类 具体策略类
 * 抽象策略类的多个方法实现类之一
 */
public class StudentDiscount implements Discount {
    private final double DISCOUNT = 0.8;

    public double calculate(double price){
        System.out.println("学生票：");
        return price * DISCOUNT;
    }
}
